package ooday03.animal;

public class Fish extends Animal implements Swim{

    Fish(){

    }

    Fish(String name,int age,String color){
        super(name,age,color);
    }

    @Override
    public void swim(){
        System.out.println(age+"岁的小🐟 "+name+"正在水里面自由的遨游");
    }

    @Override
    void eat() {
        System.out.println(name+" 🐟 正在美美的吃鱼饲料");
    }

    @Override
    public String toString() {
        return "Fish{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", color='" + color + '\'' +
                '}';
    }
}
